package com.jpush;

public class Client {
    public static void main(String[] args) {

        int[] arr={1,2,3,4,5,6};

        mulit(arr);
    }

    private static void mulit(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            int result = 1;
            for (int j = 0; j < i; j++) {
                result *= arr[j];
            }
            for (int j = i + 1; j < arr.length; j++) {
                result *= arr[j];
            }
            System.out.println(result);
        }
    }
}
